Skip to content

1852 - Grid layout settings as parameters #1976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 13, 2025

Conversation

Ateina
Copy link
Contributor

@Ateina Ateina commented Apr 19, 2025

Q A
Bug fix? [ ]
New feature? [ x ]
New sample? [ ]

#1852

This update adds optional parameters to the GridLayout component to support customizable layout behavior:
itemMinWidth
itemMaxWidth
itemPadding
compactThreshold
rowsPerPage

Note: If GridLayout contains DocumentCard items, a custom width style must be applied to override the default Fluent UI DocumentCard styles (min-width: 206px; max-width: 320px). Without this, the out-of-the-box styles will interfere with the layout configuration.

@joaojmendes joaojmendes self-assigned this Jul 13, 2025
@joaojmendes joaojmendes added the status:fixed-next-drop Issue will be fixed in upcoming release. label Jul 13, 2025
@joaojmendes joaojmendes added this to the 3.22.0 milestone Jul 13, 2025
@joaojmendes
Copy link
Collaborator

@Ateina thank you for your PR.

@joaojmendes joaojmendes merged commit 59fb521 into pnp:dev Jul 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:fixed-next-drop Issue will be fixed in upcoming release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants